package drink;

/**
 * @Auther: xiaofei
 * @Date: 2021/6/8 - 06 - 08 - 10:04
 * @Description: drink
 * @version: 1.0
 */
public class Drink {
    //属性
    private String name;
    private double price;
    private int size;
    private String isIce;
    private int num;
    //方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getIsIce() {
        return isIce;
    }

    public void setIsIce(String remark) {
        this.isIce = isIce;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }


    public String showDrink(){
        return "饮料的名字是："+name+"\n是否加冰："+isIce+"\n选择：1.中杯 2.大杯  3.超大杯"+size+
                "\n购买数量："+num+"\n价钱："+price*num;
    }
    //构造器

    public Drink() {
    }

    public Drink(String name, double price, int size, String isIce, int num) {
        this.name = name;
        this.price = price;
        this.size = size;
        this.isIce = isIce;
        this.num = num;
    }
}
